To prevent documents, files, or entire disks from being altered. Files can be locked with software commands; for example, in a DOS or ProDOS catalog, a locked file has an asterisk preceding its entry. Entire disks can be physically locked by using a write-protect tab on the disk jacket; in this sense lock is synonymous with write-protect. Compare unlock.